package com.san.metadata.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.san.common.utils.PageUtils;
import com.san.common.utils.Query;
import com.san.metadata.dao.BaseLegalPersonManager;
import com.san.metadata.domain.BaseLegalPersonDO;
import com.san.metadata.service.BaseLegalPersonService;
import com.san.metadata.vo.BaseLegalPersonVO;

/**
 * 法人基础辨识信息服务实现
 * 
 * @author xiangyz
 *
 */
@Service
public class BaseLegalPersonServiceImpl implements BaseLegalPersonService {

	@Autowired
	BaseLegalPersonManager baseLegalPersonManager;

	@Override
	public int batchSave(List<BaseLegalPersonVO> list) throws Exception {
		return baseLegalPersonManager.batchSave(list);
	}

	@Override
	public int batchUpdate(List<BaseLegalPersonVO> list) throws Exception {
		return baseLegalPersonManager.batchUpdate(list);
	}

	@Override
	public List<BaseLegalPersonDO> getLegalPerson(String legalPersonName,String uscc) throws Exception {
		return baseLegalPersonManager.getLegalPerson(legalPersonName,uscc);
	}

	@Override
	public PageUtils findLegalPerson(String legalPersonName, String uscc, boolean isFuzzy, int page) throws Exception {
		return baseLegalPersonManager.findLegalPerson(legalPersonName, uscc, isFuzzy, page);
	}

	@Override
	public PageUtils findLegalPersonByAdvancedQuery(Query query) throws Exception {
		return baseLegalPersonManager.findLegalPersonByAdvancedQuery(query);
	}

}
